com.inscoper.api.Config¶
Config class provides information for global configuration. More...
Public Functions¶
| Name | |
|---|---|
| synchronized void | delete() |
| Config() Default constructor. |
|
| void | fromXML(XMLNode xml) Provide configuration information from an XML node. |
| void | toXML(XMLNode xmlParent) Export configuration information in an XML node attached to the parent XML node. |
| ELogLevel | getAPILogLevel() Get the log level of the API. |
| void | setAPILogLevel(ELogLevel apiLogLevel) Set the log level of the API. |
| StringVector | getLibraryPaths() Get the library paths. |
| void | setLibraryPaths(StringVector libraryPaths) Set the library paths. |
| StringVector | getDriverList() Get the driver list. |
| DeviceConfigVector | getDeviceList() Get the device configuration list. |
| void | setDeviceList(DeviceConfigVector deviceList) Set the device configuration list. |
| void | addDeviceConfig(DeviceConfig device) Add a device configuration to the list. |
| String | getConfigPath() Get the configuration path. |
| void | setConfigPath(String configPath) Set the configuration path. |
Protected Functions¶
| Name | |
|---|---|
| Config(long cPtr, boolean cMemoryOwn) | |
| void | swigSetCMemOwn(boolean own) |
| void | finalize() |
| long | getCPtr(Config obj) |
Detailed Description¶
Config class provides information for global configuration.
This class handles the loading, saving, and management of the global configuration for the Inscoper API, including driver lists, device configurations, and log levels.
Public Functions Documentation¶
function delete¶
function Config¶
Default constructor.
Initializes a new instance of the Config class with default values.
function fromXML¶
Provide configuration information from an XML node.
Parameters:
- xml : an XML node containing configuration information
Exceptions:
- InscoperException if an error occurred
Loads the configuration settings from the specified XML node.
function toXML¶
Export configuration information in an XML node attached to the parent XML node.
Parameters:
- xmlParent : The parent XML node
Exceptions:
- InscoperException if an error occurred
Saves the current configuration settings to the specified parent XML node.
function getAPILogLevel¶
Get the log level of the API.
Return: The log level of the API
Retrieves the current logging verbosity level used by the API.
function setAPILogLevel¶
Set the log level of the API.
Parameters:
- apiLogLevel : The log level of the API
Updates the logging verbosity level for the API.
function getLibraryPaths¶
Get the library paths.
Return: The library paths
Retrieves the list of folders where external libraries (e.g., Micro-Manager, Custom drivers) are located.
function setLibraryPaths¶
Set the library paths.
Parameters:
- libraryPaths : The list of library paths
Sets the list of folders where external libraries (e.g., Micro-Manager, Custom drivers) are located.
function getDriverList¶
Get the driver list.
Return: The list of drivers
Retrieves the list of available drivers in the configuration.
function getDeviceList¶
Get the device configuration list.
Return: The list of device configurations
Retrieves the list of configured devices.
function setDeviceList¶
Set the device configuration list.
Parameters:
- deviceList : The list of device configurations
Updates the list of configured devices.
function addDeviceConfig¶
Add a device configuration to the list.
Parameters:
- device : The device configuration to add
Appends a new device configuration to the current list of devices.
function getConfigPath¶
Get the configuration path.
Return: The path to the current configuration
Retrieves the folder path to the current configuration.
function setConfigPath¶
Set the configuration path.
Parameters:
- configPath : The path to the current configuration
Sets the folder path to the current configuration.
Protected Functions Documentation¶
function Config¶
function swigSetCMemOwn¶
function finalize¶
function getCPtr¶
Updated on 2026-04-02 at 10:55:37 +0200